package com.newdjk.newdoctor.adapter;



import android.graphics.drawable.Drawable;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.newdjk.newdoctor.MyApplication;
import com.newdjk.newdoctor.R;
import com.newdjk.newdoctor.entity.GoodShareEntity;
import com.newdjk.newdoctor.utils.AppLicationUtils;
import com.newdjk.newdoctor.utils.GlideUtils;

import java.util.List;

public class ShareGooddapter extends BaseQuickAdapter<GoodShareEntity.ListDetailsBean, BaseViewHolder> {


    private static final String TAG = "CityAdapter";

    public ShareGooddapter(@Nullable List<GoodShareEntity.ListDetailsBean> data) {
        super(R.layout.share_good_item,data);
    }


    @Override
    protected void convert(BaseViewHolder baseViewHolder,GoodShareEntity.ListDetailsBean itemEntity) {

        ImageView avatar = baseViewHolder.getView(R.id.im_good);

        GlideUtils.loadCommonmage(itemEntity.getImgPath(),avatar);
        baseViewHolder.setText(R.id.tv_desc, itemEntity.getGoodsName());
        baseViewHolder.setText(R.id.tv_price, itemEntity.getAllPrice());
        baseViewHolder.setText(R.id.tv_count,"x"+ itemEntity.getGoodsNum());


    }


}


